package com.dss.auto_deploy.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
* @author dongshoushan
* @date 2022-10-22 21:48:11
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "nacos配置")
public class AdmNacosVo {

    /**
    * 主键
    */
    @ApiModelProperty(value = "主键")
    private Long id;
    /**
     * 部署docker
     */
    @ApiModelProperty(value = "部署docker")
    private Long dockerId;
    private String dockerName;

    /**
     * 挂载目录
     */
    @ApiModelProperty(value = "挂载目录")
    private String mountPath;
    /**
     * 容器id
     */
    @ApiModelProperty(value = "容器id")
    private String containerId;
    private String stateName;

    /**
    * nacos名称
    */
    @ApiModelProperty(value = "nacos名称")
    private String nacosName;

    /**
    * nacos地址
    */
    @ApiModelProperty(value = "nacos地址")
    private String nacosUrl;

    /**
    * nacos端口
    */
    @ApiModelProperty(value = "nacos端口")
    private String nacosPort;

    /**
    * nacos用户名
    */
    @ApiModelProperty(value = "nacos用户名")
    private String nacosUsername;

    /**
    * nacos密码
    */
    @ApiModelProperty(value = "nacos密码")
    private String nacosPassword;


    @ApiModelProperty(value = "数据库id",example = "")
    private Long dbId;
    private String dbName;
    private String dbUrl;
    @ApiModelProperty(value = "数据库类型",example = "")
    private String dbType;
    @ApiModelProperty(value = "数据库名称",example = "")
    private String databaseName;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 安装服务器
     */
    @ApiModelProperty(value = "安装服务器")
    private Long serverId;
    private String ip;
}
